/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.entity.customer;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @ClassName 〈CustomerRecord>
 * @Description 客户备注表实体
 * @Author 朱永波
 * @Date 2017/11/6 10:21
 */
@Entity
@Table(name = "cus_record")
public class CustomerRecord extends BaseEntity{

    /**
     * 客户id
     */
    @Column(name = "customer_id")
    private Long customerId;

    /**
     * 业务表名
     */
    @Column(name = "table_name")
    private String tableName;

    /**
     * 业务id
     */
    @Column(name = "table_id")
    private Long tableId;

    /**
     * 备注内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 商机来源人id
     */
    @Column(name = "from_user_id")
    private Long fromUserId;
    /**
     * 商机来源人组织id
     */
    @Column(name = "from_user_org_id")
    private Long fromUserOrgId;
    /**
     * 商机去向人id
     */
    @Column(name = "to_user_id")
    private Long toUserId;
    /**
     * 商机去向人组织id
     */
    @Column(name = "to_user_org_id")
    private Long toUserOrgId;

    /**
     * 备注类型，字典表
     */
    @Column(name = "record_type")
    private String recordType;

    /**
     * 扩展字段1
     */
    @Column(name = "ext_1")
    private String ext1;

    /**
     * 扩展字段2
     */
    @Column(name = "ext_2")
    private String ext2;

    /**
     * 扩展字段3
     */
    @Column(name = "ext_3")
    private String ext3;

    /**
     * 扩展字段4
     */
    @Column(name = "ext_4")
    private String ext4;

    /**
     * 扩展字段5
     */
    @Column(name = "ext_5")
    private String ext5;

    /**
     * json字符，不参与搜索
     */
    @Column(name = "alt_json")
    private String altJson;

    /**
     * 客户id
     * @return customer_id 客户id
     */
    public Long getCustomerId() {
        return customerId;
    }

    /**
     * 客户id
     * @param customerId 客户id
     */
    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    /**
     * 业务表名
     * @return table_name 业务表名
     */
    public String getTableName() {
        return tableName;
    }

    /**
     * 业务表名
     * @param tableName 业务表名
     */
    public void setTableName(String tableName) {
        this.tableName = tableName == null ? null : tableName.trim();
    }

    /**
     * 业务id
     * @return table_id 业务id
     */
    public Long getTableId() {
        return tableId;
    }

    /**
     * 业务id
     * @param tableId 业务id
     */
    public void setTableId(Long tableId) {
        this.tableId = tableId;
    }

    /**
     * 备注内容
     * @return content 备注内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 备注内容
     * @param content 备注内容
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     * 备注类型，字典表
     * @return record_type 备注类型，字典表
     */
    public String getRecordType() {
        return recordType;
    }

    /**
     * 备注类型，字典表
     * @param recordType 备注类型，字典表
     */
    public void setRecordType(String recordType) {
        this.recordType = recordType == null ? null : recordType.trim();
    }

    /**
     * 扩展字段1
     * @return ext_1 扩展字段1
     */
    public String getExt1() {
        return ext1;
    }

    /**
     * 扩展字段1
     * @param ext1 扩展字段1
     */
    public void setExt1(String ext1) {
        this.ext1 = ext1 == null ? null : ext1.trim();
    }

    /**
     * 扩展字段2
     * @return ext_2 扩展字段2
     */
    public String getExt2() {
        return ext2;
    }

    /**
     * 扩展字段2
     * @param ext2 扩展字段2
     */
    public void setExt2(String ext2) {
        this.ext2 = ext2 == null ? null : ext2.trim();
    }

    /**
     * 扩展字段3
     * @return ext_3 扩展字段3
     */
    public String getExt3() {
        return ext3;
    }

    /**
     * 扩展字段3
     * @param ext3 扩展字段3
     */
    public void setExt3(String ext3) {
        this.ext3 = ext3 == null ? null : ext3.trim();
    }

    /**
     * 扩展字段4
     * @return ext_4 扩展字段4
     */
    public String getExt4() {
        return ext4;
    }

    /**
     * 扩展字段4
     * @param ext4 扩展字段4
     */
    public void setExt4(String ext4) {
        this.ext4 = ext4 == null ? null : ext4.trim();
    }

    /**
     * 扩展字段5
     * @return ext_5 扩展字段5
     */
    public String getExt5() {
        return ext5;
    }

    /**
     * 扩展字段5
     * @param ext5 扩展字段5
     */
    public void setExt5(String ext5) {
        this.ext5 = ext5 == null ? null : ext5.trim();
    }

    /**
     * json字符，不参与搜索
     * @return alt_json json字符，不参与搜索
     */
    public String getAltJson() {
        return altJson;
    }

    /**
     * json字符，不参与搜索
     * @param altJson json字符，不参与搜索
     */
    public void setAltJson(String altJson) {
        this.altJson = altJson == null ? null : altJson.trim();
    }

    public Long getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(Long fromUserId) {
        this.fromUserId = fromUserId;
    }

    public Long getFromUserOrgId() {
        return fromUserOrgId;
    }

    public void setFromUserOrgId(Long fromUserOrgId) {
        this.fromUserOrgId = fromUserOrgId;
    }

    public Long getToUserId() {
        return toUserId;
    }

    public void setToUserId(Long toUserId) {
        this.toUserId = toUserId;
    }

    public Long getToUserOrgId() {
        return toUserOrgId;
    }

    public void setToUserOrgId(Long toUserOrgId) {
        this.toUserOrgId = toUserOrgId;
    }
}